<?php
/**
 * 分类操作
 *
 */

class Category extends Controller  
{
	/**
	 * 解析函数
	 *
	 */
	function __construct()
	{
		parent::__construct();
		$this->loadModel('Category_model');
	}
	
	function showDate()
	{
		$list    		= $this->index_model->getList($this->in_var['id'],$this->in_var['page']);
		$category_info  = $this->index_model->getCategoryinfo($this->in_var['id']);
		
		$this->tpl->assign('List',$list);
		$this->tpl->assign('CategoryInfo',$category_info);
		$this->tpl->display('list.html');    //指定模板
	}
	
	
}